package reservation;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import store.impl.StoreProvider;

public class LoginProvider {

    public static void login(WebDriver driver) {
        final StoreProvider storeProvider = new StoreProvider();
        driver.findElement(By.id("login_credit")).sendKeys(storeProvider.getLoginCode());
        driver.findElement(By.id("pwd_credit")).sendKeys(storeProvider.getPassword());
        driver.findElement(By.cssSelector("input[name='loginButton']")).click();
    }
}
